package com.fcgzs.question.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fcgzs.common.utils.PageUtils;
import com.fcgzs.question.entity.QuestionEntity;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ljj
 * @email ljj@gmail.com
 * @date 2021-08-19 11:39:55
 */
public interface QuestionService extends IService<QuestionEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //批量导入Excel数据
    public Map<String,Object> importExcel(MultipartFile multipartFile);

    /**
     * 导出Excel数据
     * @return
     */
    public Workbook exportExcel();

    /**
     * 查询分类下的题目数量
     * @return
     */
    public List<Map<String,Object>> countTypeQuestion();
}

